<?php
$p=Profiles::model()->findByPk($article->user->id);

$star='';
$article->grade = $article->grade>=5 ? 5 : $article->grade;
for($i=1;$i<=$article->grade;$i++){
    $star .=  '<img width="18" height="18" class="img18" src="images/star.gif">';
}

$this->pageTitle=Yii::app()->name . ' - '.$article->title;

?>

<div class="h8"></div>
<!-- 通栏-->
<div class="detailContent-title">
    <?php if(isset($this->breadcrumbs)):?>
        <?php $this->widget('zii.widgets.CBreadcrumbs', array(
        'htmlOptions'=>array('class'=>'local'),
        'separator'=>'&nbsp;&gt;&nbsp;',
        'links'=>array(
            $current->parent->name=>$this->createUrl('cate/list',array('pid'=>$current->pid)),
            $current->name=>$this->createUrl('cate/list',array('pid'=>$current->pid, 'cid'=>$current->cid))
        ),
        'homeLink'=>'当前位置：首页',
        'tagName'=>'span',
    )); ?><!-- breadcrumbs -->
    <?php endif?>
</div>

<div class="tonglan wz">
    <h3>
        <?php echo $article->title;?>

        <p><span>发布人：<?php echo isset($p->nickname) && !empty($p->nickname) ? $p->nickname : $article->user->username;?></span>
            <span>发布时间：<?php echo substr($article->createtime,0,10);?></span>
            <?php if($article->cid==23){?><span>星级标准：<?php echo $star; ?></span><?php }?>
            <?php if($article->cid==24){?> <span>信息来源：<?php echo $article->excerpt;?></span> <?php }?>
            <?php if($article->cid==25){?> <span>出处：<?php echo $article->excerpt;?></span> <?php }?>
            <span>点击量:<?php echo $article->clicknumber;?>次</span></p>
    </h3>
    <div class="content">
        <?php echo $article->content;?>
    </div>
    <div class="celar"></div>
</div>

<div class="h8"></div>